﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Flowers;

namespace Logic
{
            public class RoseCreator : Creator
        {
                public override AbstractFlowers FactoryMethod()
                {
                    Rose A = new Rose();
                    A.Price = 100;
                    A.Name = " Роза стоимостью 100 рублей ";
                    return A;
                }
            public override AbstractFlowers FactoryMethod(int price)
            {
                Rose A = new Rose();
                A.Price = price;
                A.Name = " Роза стоимостью" + price + " рублей ";
                return A;
            }
        }
    
}
